# while 中使用break跳出循环
i = 0
while i <= 5:
    i += 1
    print('星期为：', i)
    if i == 3:
        break

i = 0
while i <= 5:
    if i == 3:
        break
    print('星期为：', i)
    i += 1

# for循环中使用break语句
for i in range(1, 6):
    print("星期", i)
    if i == 3:
        break

for i in range(1, 6):
    if i == 3:
        break
    print("星期", i)

# while循环中使用continue语句
i = 1
while i < 5:
    i = i + 1
    if i == 4:
        continue
    print("星期", i)

# for循环中使用continue语句
for i in range(1, 6):
    if i == 4:
        continue
    print("星期", i)
